home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 3 / Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso / comms / netsoftware / sana2_cslip.lha / device_protos.h < prev    next >
C/C++ Source or Header  |  1993-08-13  |  3KB  |  90 lines

  1. /*
  2. ** $Source: hog:Other/networking/sana2/src/slip/RCS/device_protos.h,v $
  3. ** $State: Exp $
  4. ** $Revision: 37.2 $
  5. ** $Date: 92/08/23 21:23:07 $
  6. ** $Author: kcd $
  7. **
  8. ** Amiga SANA-II Example SLIP device driver.
  9. **
  10. ** (C) Copyright 1992 Commodore-Amiga, Inc.
  11. **
  12. */
  13.  
  14. /* Prototypes for functions defined in device_funcs.c */
  15.  
  16. ULONG ASM DevOpen(REG(a1) struct IOSana2Req * ios2,
  17.             REG(a6) struct SLIPDevice *SLIPDevice,
  18.                     REG(d0) ULONG s2unit,
  19.                     REG(d1) ULONG s2flags);
  20. BPTR ASM DevClose(REG(a1) struct IOSana2Req * ios2,
  21.             REG(a6) struct SLIPDevice *SLIPDevice);
  22. BPTR ASM DevExpunge(REG(a6) struct SLIPDevice *SLIPDevice);
  23. struct SLIPDevUnit *InitSLIPUnit(ULONG s2unit);
  24. VOID ExpungeUnit(struct SLIPDevUnit *sdu);
  25. BOOL ReadConfig(struct SLIPDevUnit *sdu);
  26. VOID ASM DevBeginIO(REG(a1) struct IOSana2Req * ios2,
  27.             REG(a6) struct SLIPDevice *SLIPDevice);
  28. VOID PerformIO(struct IOSana2Req *ios2);
  29. VOID GetSpecialStats(struct SLIPDevUnit *sdu,
  30.                      struct IOSana2Req *ios2);
  31. VOID GetGlobalStats(struct SLIPDevUnit *sdu,
  32.                     struct IOSana2Req *ios2);
  33. VOID GetTypeStats(struct SLIPDevUnit *sdu,
  34.                   struct IOSana2Req *ios2);
  35. VOID TrackType(struct SLIPDevUnit *sdu,
  36.                struct IOSana2Req *ios2);
  37. VOID UnTrackType(struct SLIPDevUnit *sdu,
  38.                  struct IOSana2Req *ios2);
  39. VOID PacketReceived(struct SLIPDevUnit *sdu,
  40.                     ULONG length);
  41. VOID PacketSent(struct SLIPDevUnit *sdu,
  42.                 ULONG length);
  43. VOID PacketOverrun(struct SLIPDevUnit *sdu);
  44. VOID ReceivedGarbage(struct SLIPDevUnit *sdu);
  45. VOID PacketDropped(struct SLIPDevUnit *sdu);
  46. VOID TermIO(struct IOSana2Req *ios2);
  47. ULONG ASM DevAbortIO(REG(a1) struct IOSana2Req * ios2,
  48.                REG(a6) struct SLIPDevice *SLIPDevice);
  49. ULONG AbortReq(struct MinList *minlist,
  50.                struct IOSana2Req *ios2);
  51. VOID ConfigInterface(struct SLIPDevUnit *sdu,
  52.                      struct IOSana2Req *ios2);
  53. VOID GetStationAddress(struct SLIPDevUnit *sdu,
  54.                        struct IOSana2Req *ios2);
  55. VOID DeviceQuery(struct SLIPDevUnit *sdu,
  56.                  struct IOSana2Req *ios2);
  57. VOID WritePacket(struct SLIPDevUnit *sdu,
  58.                  struct IOSana2Req *ios2);
  59. VOID SendPacket(struct SLIPDevUnit *sdu,
  60.                 struct IOSana2Req *ios2);
  61. ULONG EncodeSLIP(UBYTE *source,
  62.                  UBYTE *dest,
  63.                  ULONG length);
  64. VOID ReadPacket(struct SLIPDevUnit *sdu,
  65.                 struct IOSana2Req *ios2);
  66. VOID ReadOrphan(struct SLIPDevUnit *sdu,
  67.                 struct IOSana2Req *ios2);
  68. BOOL InitSerial(struct SLIPDevUnit *sdu);
  69. VOID DeinitSerial(struct SLIPDevUnit *sdu);
  70. VOID OnEvent(struct SLIPDevUnit *sdu,
  71.              struct IOSana2Req *ios2);
  72. BOOL OpenSerial(struct SLIPDevUnit *sdu);
  73. VOID MarkTimeOnline(struct SLIPDevUnit *sdu);
  74. VOID CloseSerial(struct SLIPDevUnit *sdu);
  75. VOID Online(struct SLIPDevUnit *sdu,
  76.             struct IOSana2Req *ios2);
  77. VOID Offline(struct SLIPDevUnit *sdu,
  78.              struct IOSana2Req *ios2);
  79. VOID DoEvent(struct SLIPDevUnit *sdu,
  80.              ULONG event);
  81. VOID DoOffline(struct SLIPDevUnit *sdu);
  82. VOID ServiceTxPort(struct SLIPDevUnit *sdu);
  83. VOID DoSerial(struct SLIPDevUnit *sdu,
  84.               struct IOExtSer *ioSer);
  85. VOID GotPacket(struct SLIPDevUnit *sdu,
  86.                ULONG length);
  87. VOID QueueSerRequest(struct SLIPDevUnit *sdu);
  88. VOID ASM DevProcCEntry(VOID);
  89. VOID NewList(struct List *list);
  90.